<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Admin */

$this->title = '个人信息设置';
$this->params['breadcrumbs'][] = ['label' => '个人信息', 'url' => ['profile']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="admin-update">

    <div class="admin-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'phone')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary','id' => "saveBtn"]) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>

</div>